home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir24
/
jnos110g.zip
/
MKTL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-17
|
723b
|
34 lines
/* Create command files for Borland TLIB command. Reads list of
* object file names from stdin in free format
*
* June 1992 P. Karn
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int
main()
{
int c;
int prev = 0;
for(;;){
/* Skip leading white space */
while(c = getchar(),isspace(c))
;
if(c == EOF)
break;
if(prev)
printf(" &\n");
/* Print "+token" */
printf("+%c",c);
while(c = getchar(),!isspace(c) && c != EOF)
putchar(c);
if(c == EOF)
break;
prev = 1;
}
putchar('\n'); /* Final line is empty */
return 0;
}